# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.ToolResults.V1beta3.Model.AppStartTime do
  @moduledoc """


  ## Attributes

  *   `fullyDrawnTime` (*type:* `GoogleApi.ToolResults.V1beta3.Model.Duration.t`, *default:* `nil`) - Optional. The time from app start to reaching the developer-reported "fully drawn" time. This is only stored if the app includes a call to Activity.reportFullyDrawn(). See https://developer.android.com/topic/performance/launch-time.html#time-full
  *   `initialDisplayTime` (*type:* `GoogleApi.ToolResults.V1beta3.Model.Duration.t`, *default:* `nil`) - The time from app start to the first displayed activity being drawn, as reported in Logcat. See https://developer.android.com/topic/performance/launch-time.html#time-initial
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :fullyDrawnTime => GoogleApi.ToolResults.V1beta3.Model.Duration.t() | nil,
          :initialDisplayTime => GoogleApi.ToolResults.V1beta3.Model.Duration.t() | nil
        }

  field(:fullyDrawnTime, as: GoogleApi.ToolResults.V1beta3.Model.Duration)
  field(:initialDisplayTime, as: GoogleApi.ToolResults.V1beta3.Model.Duration)
end

defimpl Poison.Decoder, for: GoogleApi.ToolResults.V1beta3.Model.AppStartTime do
  def decode(value, options) do
    GoogleApi.ToolResults.V1beta3.Model.AppStartTime.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.ToolResults.V1beta3.Model.AppStartTime do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
